import request from '@/utils/request'

export function getTree(params) {
  return request({
    url: '/vue-admin-template/menu/getTree?query='+params,
    method: 'get'
   
  })

}


export function addMenu(data) {
return request({
    url: '/vue-admin-template/menu',
    method: 'post',
    data
    
})
}


export function updateMenu(data) {
return request({
    url: '/vue-admin-template/menu',
    method: 'put',
    data
    
})
}

export function deleteMenu(data) {
  return request({
      url: '/vue-admin-template/menu',
      method: 'delete',
      data
      
  })
  }

export function getMenuoptions(data) {
    return request({
        url: '/vue-admin-template/menu/getOptions',
        method: 'get',
        data
        
    })
    }